<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.1.min.js"></script>
<script type="text/javascript">
$(document).delegate('a', 'click', function() {	
	if(!this.href.match(/#/)) {
		$link = this.href;
		$.post("link", {link:$link}, function(xml) {
			$("#status").html($("status", xml).text());
		});		
	}	
});
$(document).ready(function() {
	$("a").click(function(e) {
		e.preventDefault();
	});
});
</script>

<title>Insert title here</title>
</head>
<body>
	<a href="javascript:hello(3);">Hello Javascript</a><br/>
	<a href="http://localhost">Hello Localhost</a><br/>
	<a href="http://amandil">Hello Amandil</a><br/>
	<br/>
	<div id="status"></div>
</body>
</html>